﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcMall.AdminPortal.Controllers.GoodsBrand.ViewModels;
using MvcMall.Core.Commands;
using MvcMall.Core.Enums;
using MvcMall.Framework.Mapper;

namespace MvcMall.AdminPortal.Controllers.GoodsBrand.Mappers
{
    public class SaveGoodsBrandCommandMapper
        : BaseMapper<SaveGoodsBrandModel, SaveGoodsBrandCommand>, IMapper<SaveGoodsBrandModel, SaveGoodsBrandCommand>
    {
        public override SaveGoodsBrandCommand MapFrom(SaveGoodsBrandModel model)
        {
            var cmd = base.MapFrom(model);
            cmd.BrandStatus = GoodsBrandStatus.审核通过;
            return cmd;
        }
    }
}
